﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Handrise.Mobile.BasicModal.DataLayer;

namespace Handrise.CDCable.Mobile.Business
{
    /// <summary>
    /// 巡视详情
    /// </summary>
    [Serializable]
    [EntityMapping(TableName = "PatrolDetail")]
    public class PatrolDetail
    {
        /// <summary>
        /// 巡视详情ID
        /// </summary>
        [EntityMapping(IsKey = true, ColumnName = "PatrolDetailID")]
        public string PatrolDetailID { get; set; }

        /// <summary>
        /// 对应的巡视计划ID
        /// </summary>
        [EntityMapping(ColumnName = "PlanID")]
        public string PlanID { get; set; }

        /// <summary>
        /// 对应的巡视日志ID
        /// </summary>
        [EntityMapping(ColumnName = "PlanLogID")]
        public string PlanLogID { get; set; }

        /// <summary>
        /// 巡视设备ID
        /// </summary>
        [EntityMapping(ColumnName = "PlanDeviceID")]
        public string PlanDeviceID { get; set; }

        /// <summary>
        /// 设备ID
        /// </summary>
        [EntityMapping(ColumnName = "DeviceID")]
        public string DeviceID { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [EntityMapping(ColumnName = "DeviceName")]
        public string DeviceName { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        [EntityMapping(ColumnName = "DeviceType")]
        public string DeviceType { get; set; }

        /// <summary>
        /// 设备长度
        /// </summary>
        [EntityMapping(ColumnName = "DeviceLength")]
        public string DeviceLength { get; set; }

        /// <summary>
        /// 父设备名称
        /// </summary>
        [EntityMapping(ColumnName = "ParentDeviceName")]
        public string ParentDeviceName { get; set; }

        /// <summary>
        /// 父设备类型
        /// </summary>
        [EntityMapping(ColumnName = "ParentDeviceType")]
        public string ParentDeviceType { get; set; }

        /// <summary>
        /// 父设备长度
        /// </summary>
        [EntityMapping(ColumnName = "ParentDeviceLength")]
        public string ParentDeviceLength { get; set; }

        /// <summary>
        /// 巡视类型
        /// </summary>
        [EntityMapping(ColumnName = "WorkType")]
        public string WorkType { get; set; }

        /// <summary>
        /// 巡视要点ID
        /// </summary>
        [EntityMapping(ColumnName = "PatrolItemID")]
        public string PatrolItemID { get; set; }

        /// <summary>
        /// 巡视要点名称
        /// </summary>
        [EntityMapping(ColumnName = "PatrolItemName")]
        public string PatrolItemName { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [EntityMapping(ColumnName = "Content")]
        public string Content { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [EntityMapping(ColumnName = "UserName")]
        public string UserName { get; set; }

        /// <summary>
        /// 上报状态
        /// </summary>
        [EntityMapping(ColumnName = "ReportState")]
        public string ReportState { get; set; }
    }
}
